.class public Lcom/esfile/screen/recorder/picture/PictureEditActivity;
.super Lcom/esfile/screen/recorder/base/BaseActivity;
.source "PictureEditActivity.java"

# interfaces
.implements Landroid/view/View$OnClickListener;


# instance fields
.field private a:I

.field private b:Landroid/widget/ImageView;

.field private c:Landroid/widget/TextView;

.field private d:Landroid/view/View;

.field private e:Landroid/view/View;

.field private f:Landroid/view/View;

.field private g:Landroid/view/View;

.field private h:Lcom/esfile/screen/recorder/picture/crop/CropImageView;

.field private i:Lcom/esfile/screen/recorder/picture/crop/HighlightView;

.field private j:Lcom/esfile/screen/recorder/picture/ui/MosaicView;

.field private k:Landroid/view/View;

.field private l:Z

.field private m:I

.field private n:Z

.field private o:Ljava/lang/String;

.field private p:Landroid/graphics/Bitmap;

.field private q:Ljava/lang/Runnable;


# direct methods
.method public constructor <init>()V
    .locals 2

    .line 1
    invoke-direct {p0}, Lcom/esfile/screen/recorder/base/BaseActivity;-><init>()V

    const/4 v0, 0x1

    .line 2
    iput v0, p0, Lcom/esfile/screen/recorder/picture/PictureEditActivity;->a:I

    const/4 v1, 0x0

    .line 3
    iput-boolean v1, p0, Lcom/esfile/screen/recorder/picture/PictureEditActivity;->l:Z

    .line 4
    iput-boolean v0, p0, Lcom/esfile/screen/recorder/picture/PictureEditActivity;->n:Z

    .line 5
    new-instance v0, Lcom/esfile/screen/recorder/picture/j;

    invoke-direct {v0, p0}, Lcom/esfile/screen/recorder/picture/j;-><init>(Lcom/esfile/screen/recorder/picture/PictureEditActivity;)V

    iput-object v0, p0, Lcom/esfile/screen/recorder/picture/PictureEditActivity;->q:Ljava/lang/Runnable;

    return-void
.end method

.method private A()V
    .locals 4

    .line 1
    iget-object v0, p0, Lcom/esfile/screen/recorder/picture/PictureEditActivity;->d:Landroid/view/View;

    const/4 v1, 0x0

    invoke-virtual {v0, v1}, Landroid/view/View;->setSelected(Z)V

    .line 2
    iget-object v0, p0, Lcom/esfile/screen/recorder/picture/PictureEditActivity;->e:Landroid/view/View;

    const/4 v2, 0x1

    invoke-virtual {v0, v2}, Landroid/view/View;->setSelected(Z)V

    .line 3
    iget-object v0, p0, Lcom/esfile/screen/recorder/picture/PictureEditActivity;->f:Landroid/view/View;

    invoke-virtual {v0, v1}, Landroid/view/View;->setSelected(Z)V

    .line 4
    iget-object v0, p0, Lcom/esfile/screen/recorder/picture/PictureEditActivity;->j:Lcom/esfile/screen/recorder/picture/ui/MosaicView;

    invoke-virtual {v0, v2}, Landroid/view/ViewGroup;->setEnabled(Z)V

    .line 5
    iget-object v0, p0, Lcom/esfile/screen/recorder/picture/PictureEditActivity;->j:Lcom/esfile/screen/recorder/picture/ui/MosaicView;

    sget-object v3, Lcom/esfile/screen/recorder/picture/ui/MosaicView$Mode;->NONE:Lcom/esfile/screen/recorder/picture/ui/MosaicView$Mode;

    invoke-virtual {v0, v3}, Lcom/esfile/screen/recorder/picture/ui/MosaicView;->setMode(Lcom/esfile/screen/recorder/picture/ui/MosaicView$Mode;)V

    .line 6
    iget-object v0, p0, Lcom/esfile/screen/recorder/picture/PictureEditActivity;->h:Lcom/esfile/screen/recorder/picture/crop/CropImageView;

    invoke-virtual {v0, v2}, Lcom/esfile/screen/recorder/picture/crop/CropImageView;->setEnabled(Z)V

    .line 7
    iget-object v0, p0, Lcom/esfile/screen/recorder/picture/PictureEditActivity;->h:Lcom/esfile/screen/recorder/picture/crop/CropImageView;

    invoke-virtual {v0, v1}, Landroid/widget/ImageView;->setVisibility(I)V

    .line 8
    iget-object v0, p0, Lcom/esfile/screen/recorder/picture/PictureEditActivity;->h:Lcom/esfile/screen/recorder/picture/crop/CropImageView;

    iget-object v1, p0, Lcom/esfile/screen/recorder/picture/PictureEditActivity;->j:Lcom/esfile/screen/recorder/picture/ui/MosaicView;

    invoke-virtual {v0, v1}, Lcom/esfile/screen/recorder/picture/crop/CropImageView;->setMosaicView(Lcom/esfile/screen/recorder/picture/ui/MosaicView;)V

    return-void
.end method

.method private B()Ljava/lang/String;
    .locals 5

    .line 1
    invoke-static {}, Les/qc$e;->b()Ljava/lang/String;

    move-result-object v0

    if-nez v0, :cond_0

    const/4 v0, 0x0

    return-object v0

    .line 2
    :cond_0
    new-instance v1, Ljava/text/SimpleDateFormat;

    const-string v2, "yyyyMMdd_HHmmss"

    invoke-direct {v1, v2}, Ljava/text/SimpleDateFormat;-><init>(Ljava/lang/String;)V

    new-instance v2, Ljava/util/Date;

    invoke-static {}, Ljava/lang/System;->currentTimeMillis()J

    move-result-wide v3

    invoke-direct {v2, v3, v4}, Ljava/util/Date;-><init>(J)V

    invoke-virtual {v1, v2}, Ljava/text/SimpleDateFormat;->format(Ljava/util/Date;)Ljava/lang/String;

    move-result-object v1

    .line 3
    new-instance v2, Ljava/lang/StringBuilder;

    invoke-direct {v2}, Ljava/lang/StringBuilder;-><init>()V

    invoke-virtual {v2, v0}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    sget-object v0, Ljava/io/File;->separator:Ljava/lang/String;

    invoke-virtual {v2, v0}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    invoke-virtual {v2, v1}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    const-string v0, "_rmedited"

    invoke-virtual {v2, v0}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    const-string v0, ".jpg"

    invoke-virtual {v2, v0}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    invoke-virtual {v2}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;

    move-result-object v0

    return-object v0
.end method

.method private C()V
    .locals 2

    .line 1
    sget v0, Les/x4;->durec_title:I

    invoke-virtual {p0, v0}, Landroidx/appcompat/app/AppCompatActivity;->findViewById(I)Landroid/view/View;

    move-result-object v0

    check-cast v0, Landroid/widget/TextView;

    .line 2
    sget v1, Les/z4;->durec_common_edit:I

    invoke-virtual {v0, v1}, Landroid/widget/TextView;->setText(I)V

    .line 3
    sget v0, Les/x4;->durec_back:I

    invoke-virtual {p0, v0}, Landroidx/appcompat/app/AppCompatActivity;->findViewById(I)Landroid/view/View;

    move-result-object v0

    check-cast v0, Landroid/widget/ImageView;

    iput-object v0, p0, Lcom/esfile/screen/recorder/picture/PictureEditActivity;->b:Landroid/widget/ImageView;

    .line 4
    invoke-virtual {v0, p0}, Landroid/widget/ImageView;->setOnClickListener(Landroid/view/View$OnClickListener;)V

    .line 5
    sget v0, Les/x4;->durec_save:I

    invoke-virtual {p0, v0}, Landroidx/appcompat/app/AppCompatActivity;->findViewById(I)Landroid/view/View;

    move-result-object v0

    check-cast v0, Landroid/widget/TextView;

    iput-object v0, p0, Lcom/esfile/screen/recorder/picture/PictureEditActivity;->c:Landroid/widget/TextView;

    const/4 v1, 0x0

    .line 6
    invoke-virtual {v0, v1}, Landroid/widget/TextView;->setVisibility(I)V

    .line 7
    iget-object v0, p0, Lcom/esfile/screen/recorder/picture/PictureEditActivity;->c:Landroid/widget/TextView;

    invoke-virtual {v0, p0}, Landroid/widget/TextView;->setOnClickListener(Landroid/view/View$OnClickListener;)V

    return-void
.end method

.method private D()V
    .locals 2

    .line 1
    invoke-direct {p0}, Lcom/esfile/screen/recorder/picture/PictureEditActivity;->C()V

    .line 2
    sget v0, Les/x4;->durec_picture_edit_mosaics_view:I

    invoke-virtual {p0, v0}, Landroidx/appcompat/app/AppCompatActivity;->findViewById(I)Landroid/view/View;

    move-result-object v0

    iput-object v0, p0, Lcom/esfile/screen/recorder/picture/PictureEditActivity;->d:Landroid/view/View;

    .line 3
    invoke-virtual {v0, p0}, Landroid/view/View;->setOnClickListener(Landroid/view/View$OnClickListener;)V

    .line 4
    sget v0, Les/x4;->durec_picture_edit_crop_view:I

    invoke-virtual {p0, v0}, Landroidx/appcompat/app/AppCompatActivity;->findViewById(I)Landroid/view/View;

    move-result-object v0

    iput-object v0, p0, Lcom/esfile/screen/recorder/picture/PictureEditActivity;->e:Landroid/view/View;

    .line 5
    invoke-virtual {v0, p0}, Landroid/view/View;->setOnClickListener(Landroid/view/View$OnClickListener;)V

    .line 6
    sget v0, Les/x4;->durec_picture_edit_brush_view:I

    invoke-virtual {p0, v0}, Landroidx/appcompat/app/AppCompatActivity;->findViewById(I)Landroid/view/View;

    move-result-object v0

    iput-object v0, p0, Lcom/esfile/screen/recorder/picture/PictureEditActivity;->f:Landroid/view/View;

    .line 7
    invoke-virtual {v0, p0}, Landroid/view/View;->setOnClickListener(Landroid/view/View$OnClickListener;)V

    .line 8
    sget v0, Les/x4;->durec_picture_edit_reset_view:I

    invoke-virtual {p0, v0}, Landroidx/appcompat/app/AppCompatActivity;->findViewById(I)Landroid/view/View;

    move-result-object v0

    iput-object v0, p0, Lcom/esfile/screen/recorder/picture/PictureEditActivity;->g:Landroid/view/View;

    .line 9
    invoke-virtual {v0, p0}, Landroid/view/View;->setOnClickListener(Landroid/view/View$OnClickListener;)V

    .line 10
    sget v0, Les/x4;->durec_loading_view:I

    invoke-virtual {p0, v0}, Landroidx/appcompat/app/AppCompatActivity;->findViewById(I)Landroid/view/View;

    move-result-object v0

    iput-object v0, p0, Lcom/esfile/screen/recorder/picture/PictureEditActivity;->k:Landroid/view/View;

    .line 11
    sget v0, Les/x4;->durec_picture_crop_view:I

    invoke-virtual {p0, v0}, Landroidx/appcompat/app/AppCompatActivity;->findViewById(I)Landroid/view/View;

    move-result-object v0

    check-cast v0, Lcom/esfile/screen/recorder/picture/crop/CropImageView;

    iput-object v0, p0, Lcom/esfile/screen/recorder/picture/PictureEditActivity;->h:Lcom/esfile/screen/recorder/picture/crop/CropImageView;

    .line 12
    sget v0, Les/x4;->durec_picture_mosaic_view:I

    invoke-virtual {p0, v0}, Landroidx/appcompat/app/AppCompatActivity;->findViewById(I)Landroid/view/View;

    move-result-object v0

    check-cast v0, Lcom/esfile/screen/recorder/picture/ui/MosaicView;

    iput-object v0, p0, Lcom/esfile/screen/recorder/picture/PictureEditActivity;->j:Lcom/esfile/screen/recorder/picture/ui/MosaicView;

    .line 13
    new-instance v1, Lcom/esfile/screen/recorder/picture/g;

    invoke-direct {v1, p0}, Lcom/esfile/screen/recorder/picture/g;-><init>(Lcom/esfile/screen/recorder/picture/PictureEditActivity;)V

    invoke-virtual {v0, v1}, Lcom/esfile/screen/recorder/picture/ui/MosaicView;->setOnImageDisplayRectChangedListener(Lcom/esfile/screen/recorder/picture/ui/MosaicView$b;)V

    .line 14
    iget-object v0, p0, Lcom/esfile/screen/recorder/picture/PictureEditActivity;->k:Landroid/view/View;

    const/4 v1, 0x0

    invoke-virtual {v0, v1}, Landroid/view/View;->setVisibility(I)V

    .line 15
    new-instance v0, Lcom/esfile/screen/recorder/picture/f;

    invoke-direct {v0, p0}, Lcom/esfile/screen/recorder/picture/f;-><init>(Lcom/esfile/screen/recorder/picture/PictureEditActivity;)V

    invoke-static {v0}, Les/xc;->a(Ljava/lang/Runnable;)V

    return-void
.end method

.method private E()Z
    .locals 2

    .line 1
    iget-boolean v0, p0, Lcom/esfile/screen/recorder/picture/PictureEditActivity;->n:Z

    const/4 v1, 0x0

    if-eqz v0, :cond_0

    .line 2
    iget-object v0, p0, Lcom/esfile/screen/recorder/picture/PictureEditActivity;->o:Ljava/lang/String;

    invoke-static {v0}, Lcom/esfile/screen/recorder/utils/i;->f(Ljava/lang/String;)Z

    move-result v0

    if-nez v0, :cond_1

    .line 3
    invoke-virtual {p0}, Landroid/app/Activity;->finish()V

    .line 4
    sget v0, Les/z4;->durec_picture_not_found:I

    invoke-static {v0}, Les/ec;->b(I)V

    return v1

    .line 5
    :cond_0
    iget-object v0, p0, Lcom/esfile/screen/recorder/picture/PictureEditActivity;->p:Landroid/graphics/Bitmap;

    if-nez v0, :cond_1

    .line 6
    invoke-virtual {p0}, Landroid/app/Activity;->finish()V

    .line 7
    sget v0, Les/z4;->durec_picture_not_found:I

    invoke-static {v0}, Les/ec;->b(I)V

    return v1

    :cond_1
    const/4 v0, 0x1

    return v0
.end method

.method private F()V
    .locals 3

    .line 1
    iget-object v0, p0, Lcom/esfile/screen/recorder/picture/PictureEditActivity;->d:Landroid/view/View;

    const/4 v1, 0x1

    invoke-virtual {v0, v1}, Landroid/view/View;->setSelected(Z)V

    .line 2
    iget-object v0, p0, Lcom/esfile/screen/recorder/picture/PictureEditActivity;->e:Landroid/view/View;

    const/4 v2, 0x0

    invoke-virtual {v0, v2}, Landroid/view/View;->setSelected(Z)V

    .line 3
    iget-object v0, p0, Lcom/esfile/screen/recorder/picture/PictureEditActivity;->f:Landroid/view/View;

    invoke-virtual {v0, v2}, Landroid/view/View;->setSelected(Z)V

    .line 4
    iget-object v0, p0, Lcom/esfile/screen/recorder/picture/PictureEditActivity;->j:Lcom/esfile/screen/recorder/picture/ui/MosaicView;

    invoke-virtual {v0, v1}, Landroid/view/ViewGroup;->setEnabled(Z)V

    .line 5
    iget-object v0, p0, Lcom/esfile/screen/recorder/picture/PictureEditActivity;->j:Lcom/esfile/screen/recorder/picture/ui/MosaicView;

    sget-object v1, Lcom/esfile/screen/recorder/picture/ui/MosaicView$Mode;->PATH:Lcom/esfile/screen/recorder/picture/ui/MosaicView$Mode;

    invoke-virtual {v0, v1}, Lcom/esfile/screen/recorder/picture/ui/MosaicView;->setMode(Lcom/esfile/screen/recorder/picture/ui/MosaicView$Mode;)V

    .line 6
    iget-object v0, p0, Lcom/esfile/screen/recorder/picture/PictureEditActivity;->h:Lcom/esfile/screen/recorder/picture/crop/CropImageView;

    invoke-virtual {v0, v2}, Lcom/esfile/screen/recorder/picture/crop/CropImageView;->setEnabled(Z)V

    return-void
.end method

.method private G()V
    .locals 3

    .line 1
    iget-object v0, p0, Lcom/esfile/screen/recorder/picture/PictureEditActivity;->d:Landroid/view/View;

    const/4 v1, 0x0

    invoke-virtual {v0, v1}, Landroid/view/View;->setSelected(Z)V

    .line 2
    iget-object v0, p0, Lcom/esfile/screen/recorder/picture/PictureEditActivity;->e:Landroid/view/View;

    invoke-virtual {v0, v1}, Landroid/view/View;->setSelected(Z)V

    .line 3
    iget-object v0, p0, Lcom/esfile/screen/recorder/picture/PictureEditActivity;->f:Landroid/view/View;

    invoke-virtual {v0, v1}, Landroid/view/View;->setSelected(Z)V

    .line 4
    iget-object v0, p0, Lcom/esfile/screen/recorder/picture/PictureEditActivity;->j:Lcom/esfile/screen/recorder/picture/ui/MosaicView;

    const/4 v2, 0x1

    invoke-virtual {v0, v2}, Landroid/view/ViewGroup;->setEnabled(Z)V

    .line 5
    iget-object v0, p0, Lcom/esfile/screen/recorder/picture/PictureEditActivity;->j:Lcom/esfile/screen/recorder/picture/ui/MosaicView;

    sget-object v2, Lcom/esfile/screen/recorder/picture/ui/MosaicView$Mode;->NONE:Lcom/esfile/screen/recorder/picture/ui/MosaicView$Mode;

    invoke-virtual {v0, v2}, Lcom/esfile/screen/recorder/picture/ui/MosaicView;->setMode(Lcom/esfile/screen/recorder/picture/ui/MosaicView$Mode;)V

    .line 6
    iget-object v0, p0, Lcom/esfile/screen/recorder/picture/PictureEditActivity;->h:Lcom/esfile/screen/recorder/picture/crop/CropImageView;

    invoke-virtual {v0, v1}, Lcom/esfile/screen/recorder/picture/crop/CropImageView;->setEnabled(Z)V

    return-void
.end method

.method private H()V
    .locals 3

    .line 1
    iget-boolean v0, p0, Lcom/esfile/screen/recorder/picture/PictureEditActivity;->l:Z

    if-eqz v0, :cond_0

    return-void

    :cond_0
    const/4 v0, 0x1

    .line 2
    invoke-direct {p0, v0}, Lcom/esfile/screen/recorder/picture/PictureEditActivity;->f(Z)V

    .line 3
    iget-object v0, p0, Lcom/esfile/screen/recorder/picture/PictureEditActivity;->j:Lcom/esfile/screen/recorder/picture/ui/MosaicView;

    invoke-virtual {v0}, Lcom/esfile/screen/recorder/picture/ui/MosaicView;->getMosaicBitmap()Landroid/graphics/Bitmap;

    move-result-object v0

    .line 4
    invoke-direct {p0}, Lcom/esfile/screen/recorder/picture/PictureEditActivity;->B()Ljava/lang/String;

    move-result-object v1

    if-eqz v0, :cond_2

    if-nez v1, :cond_1

    goto :goto_0

    .line 5
    :cond_1
    new-instance v2, Lcom/esfile/screen/recorder/picture/i;

    invoke-direct {v2, p0, v0, v1}, Lcom/esfile/screen/recorder/picture/i;-><init>(Lcom/esfile/screen/recorder/picture/PictureEditActivity;Landroid/graphics/Bitmap;Ljava/lang/String;)V

    invoke-static {v2}, Les/xc;->a(Ljava/lang/Runnable;)V

    return-void

    :cond_2
    :goto_0
    const/4 v0, 0x0

    .line 6
    invoke-direct {p0, v0}, Lcom/esfile/screen/recorder/picture/PictureEditActivity;->f(Z)V

    .line 7
    invoke-direct {p0}, Lcom/esfile/screen/recorder/picture/PictureEditActivity;->W()V

    return-void
.end method

.method private I()V
    .locals 3

    .line 1
    invoke-virtual {p0}, Landroid/app/Activity;->getIntent()Landroid/content/Intent;

    move-result-object v0

    if-nez v0, :cond_0

    .line 2
    invoke-virtual {p0}, Landroid/app/Activity;->finish()V

    .line 3
    sget v0, Les/z4;->durec_picture_not_found:I

    invoke-static {v0}, Les/ec;->b(I)V

    return-void

    .line 4
    :cond_0
    invoke-virtual {v0}, Landroid/content/Intent;->getType()Ljava/lang/String;

    move-result-object v1

    .line 5
    invoke-static {v1}, Landroid/text/TextUtils;->isEmpty(Ljava/lang/CharSequence;)Z

    move-result v2

    if-nez v2, :cond_1

    const-string v2, "image"

    invoke-virtual {v1, v2}, Ljava/lang/String;->contains(Ljava/lang/CharSequence;)Z

    move-result v2

    if-eqz v2, :cond_1

    .line 6
    iget-object v2, p0, Lcom/esfile/screen/recorder/picture/PictureEditActivity;->q:Ljava/lang/Runnable;

    invoke-direct {p0, v0, v2}, Lcom/esfile/screen/recorder/picture/PictureEditActivity;->b(Landroid/content/Intent;Ljava/lang/Runnable;)V

    goto :goto_0

    .line 7
    :cond_1
    iget-object v2, p0, Lcom/esfile/screen/recorder/picture/PictureEditActivity;->q:Ljava/lang/Runnable;

    invoke-direct {p0, v0, v2}, Lcom/esfile/screen/recorder/picture/PictureEditActivity;->c(Landroid/content/Intent;Ljava/lang/Runnable;)V

    .line 8
    :goto_0
    new-instance v0, Ljava/lang/StringBuilder;

    invoke-direct {v0}, Ljava/lang/StringBuilder;-><init>()V

    const-string v2, "type:"

    invoke-virtual {v0, v2}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    invoke-virtual {v0, v1}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    const-string v1, " isInternalIntent:"

    invoke-virtual {v0, v1}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    iget-boolean v1, p0, Lcom/esfile/screen/recorder/picture/PictureEditActivity;->n:Z

    invoke-virtual {v0, v1}, Ljava/lang/StringBuilder;->append(Z)Ljava/lang/StringBuilder;

    invoke-virtual {v0}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;

    move-result-object v0

    const-string v1, "peay"

    invoke-static {v1, v0}, Lcom/esfile/screen/recorder/utils/n;->d(Ljava/lang/String;Ljava/lang/String;)V

    return-void
.end method

.method private J()V
    .locals 0

    return-void
.end method

.method private K()V
    .locals 0

    return-void
.end method

.method private L()V
    .locals 0

    return-void
.end method

.method private M()V
    .locals 0

    return-void
.end method

.method private N()V
    .locals 0

    return-void
.end method

.method private O()V
    .locals 0

    return-void
.end method

.method private P()V
    .locals 0

    return-void
.end method

.method private Q()V
    .locals 0

    return-void
.end method

.method private R()V
    .locals 0

    return-void
.end method

.method private S()V
    .locals 0

    return-void
.end method

.method private T()V
    .locals 0

    return-void
.end method

.method private U()V
    .locals 2

    .line 1
    iget-object v0, p0, Lcom/esfile/screen/recorder/picture/PictureEditActivity;->j:Lcom/esfile/screen/recorder/picture/ui/MosaicView;

    invoke-virtual {v0}, Lcom/esfile/screen/recorder/picture/ui/MosaicView;->e()V

    .line 2
    iget-object v0, p0, Lcom/esfile/screen/recorder/picture/PictureEditActivity;->h:Lcom/esfile/screen/recorder/picture/crop/CropImageView;

    const/16 v1, 0x8

    invoke-virtual {v0, v1}, Landroid/widget/ImageView;->setVisibility(I)V

    .line 3
    invoke-direct {p0}, Lcom/esfile/screen/recorder/picture/PictureEditActivity;->G()V

    return-void
.end method

.method private V()V
    .locals 1

    .line 1
    iget-object v0, p0, Lcom/esfile/screen/recorder/picture/PictureEditActivity;->j:Lcom/esfile/screen/recorder/picture/ui/MosaicView;

    invoke-virtual {v0}, Lcom/esfile/screen/recorder/picture/ui/MosaicView;->a()V

    .line 2
    iget-object v0, p0, Lcom/esfile/screen/recorder/picture/PictureEditActivity;->i:Lcom/esfile/screen/recorder/picture/crop/HighlightView;

    if-eqz v0, :cond_0

    .line 3
    iget-object v0, p0, Lcom/esfile/screen/recorder/picture/PictureEditActivity;->h:Lcom/esfile/screen/recorder/picture/crop/CropImageView;

    invoke-virtual {v0}, Lcom/esfile/screen/recorder/picture/crop/CropImageView;->b()V

    const/4 v0, 0x0

    .line 4
    iput-object v0, p0, Lcom/esfile/screen/recorder/picture/PictureEditActivity;->i:Lcom/esfile/screen/recorder/picture/crop/HighlightView;

    :cond_0
    const/4 v0, 0x0

    .line 5
    iput v0, p0, Lcom/esfile/screen/recorder/picture/PictureEditActivity;->a:I

    .line 6
    invoke-direct {p0}, Lcom/esfile/screen/recorder/picture/PictureEditActivity;->U()V

    return-void
.end method

.method private W()V
    .locals 1

    .line 1
    sget v0, Les/z4;->durec_picture_save_fail:I

    invoke-direct {p0, v0}, Lcom/esfile/screen/recorder/picture/PictureEditActivity;->g(I)V

    .line 2
    invoke-direct {p0}, Lcom/esfile/screen/recorder/picture/PictureEditActivity;->S()V

    return-void
.end method

.method private X()V
    .locals 5

    .line 1
    new-instance v0, Lcom/esfile/screen/recorder/ui/a;

    invoke-direct {v0, p0}, Lcom/esfile/screen/recorder/ui/a;-><init>(Landroid/content/Context;)V

    const/4 v1, 0x0

    .line 2
    invoke-virtual {v0, v1}, Lcom/esfile/screen/recorder/ui/a;->b(Z)V

    .line 3
    invoke-virtual {v0, v1}, Lcom/esfile/screen/recorder/ui/a;->a(Z)V

    .line 4
    invoke-static {p0}, Landroid/view/LayoutInflater;->from(Landroid/content/Context;)Landroid/view/LayoutInflater;

    move-result-object v1

    sget v2, Les/y4;->durec_emoji_dialog_layout:I

    const/4 v3, 0x0

    .line 5
    invoke-virtual {v1, v2, v3}, Landroid/view/LayoutInflater;->inflate(ILandroid/view/ViewGroup;)Landroid/view/View;

    move-result-object v1

    .line 6
    sget v2, Les/x4;->emoji_icon:I

    invoke-virtual {v1, v2}, Landroid/view/View;->findViewById(I)Landroid/view/View;

    move-result-object v2

    check-cast v2, Landroid/widget/ImageView;

    .line 7
    sget v4, Les/w4;->durec_delete_dialog_icon:I

    invoke-virtual {v2, v4}, Landroid/widget/ImageView;->setImageResource(I)V

    .line 8
    sget v2, Les/x4;->emoji_title:I

    invoke-virtual {v1, v2}, Landroid/view/View;->findViewById(I)Landroid/view/View;

    move-result-object v2

    const/16 v4, 0x8

    invoke-virtual {v2, v4}, Landroid/view/View;->setVisibility(I)V

    .line 9
    sget v2, Les/x4;->emoji_message:I

    invoke-virtual {v1, v2}, Landroid/view/View;->findViewById(I)Landroid/view/View;

    move-result-object v2

    check-cast v2, Landroid/widget/TextView;

    .line 10
    sget v4, Les/z4;->durec_picture_edit_prompt:I

    invoke-virtual {v2, v4}, Landroid/widget/TextView;->setText(I)V

    .line 11
    invoke-virtual {v0, v1}, Lcom/esfile/screen/recorder/ui/a;->a(Landroid/view/View;)V

    .line 12
    sget v1, Les/z4;->durec_common_confirm:I

    new-instance v2, Lcom/esfile/screen/recorder/picture/d;

    invoke-direct {v2, p0}, Lcom/esfile/screen/recorder/picture/d;-><init>(Lcom/esfile/screen/recorder/picture/PictureEditActivity;)V

    invoke-virtual {v0, v1, v2}, Lcom/esfile/screen/recorder/ui/a;->b(ILandroid/content/DialogInterface$OnClickListener;)V

    .line 13
    sget v1, Les/z4;->durec_common_cancel:I

    invoke-virtual {v0, v1, v3}, Lcom/esfile/screen/recorder/ui/a;->a(ILandroid/content/DialogInterface$OnClickListener;)V

    const/4 v1, 0x1

    .line 14
    invoke-virtual {v0, v1}, Landroid/app/Dialog;->setCanceledOnTouchOutside(Z)V

    .line 15
    invoke-virtual {v0}, Lcom/esfile/screen/recorder/ui/a;->show()V

    return-void
.end method

.method private Y()V
    .locals 2

    .line 1
    iget v0, p0, Lcom/esfile/screen/recorder/picture/PictureEditActivity;->a:I

    const/4 v1, 0x2

    if-ne v0, v1, :cond_0

    .line 2
    invoke-direct {p0}, Lcom/esfile/screen/recorder/picture/PictureEditActivity;->A()V

    .line 3
    invoke-direct {p0}, Lcom/esfile/screen/recorder/picture/PictureEditActivity;->Z()V

    goto :goto_0

    :cond_0
    const/4 v1, 0x1

    if-ne v0, v1, :cond_1

    .line 4
    invoke-direct {p0}, Lcom/esfile/screen/recorder/picture/PictureEditActivity;->F()V

    goto :goto_0

    :cond_1
    const/4 v1, 0x3

    if-ne v0, v1, :cond_2

    .line 5
    invoke-direct {p0}, Lcom/esfile/screen/recorder/picture/PictureEditActivity;->z()V

    goto :goto_0

    .line 6
    :cond_2
    invoke-direct {p0}, Lcom/esfile/screen/recorder/picture/PictureEditActivity;->G()V

    :goto_0
    return-void
.end method

.method private Z()V
    .locals 1

    .line 1
    iget-object v0, p0, Lcom/esfile/screen/recorder/picture/PictureEditActivity;->i:Lcom/esfile/screen/recorder/picture/crop/HighlightView;

    if-eqz v0, :cond_0

    return-void

    .line 2
    :cond_0
    iget-object v0, p0, Lcom/esfile/screen/recorder/picture/PictureEditActivity;->j:Lcom/esfile/screen/recorder/picture/ui/MosaicView;

    invoke-virtual {v0}, Lcom/esfile/screen/recorder/picture/ui/MosaicView;->getImageDisplayRect()Landroid/graphics/Rect;

    move-result-object v0

    invoke-direct {p0, v0}, Lcom/esfile/screen/recorder/picture/PictureEditActivity;->b(Landroid/graphics/Rect;)V

    return-void
.end method

.method private a(Landroid/graphics/Bitmap;)Landroid/graphics/Bitmap;
    .locals 11

    .line 19
    iget-object v0, p0, Lcom/esfile/screen/recorder/picture/PictureEditActivity;->j:Lcom/esfile/screen/recorder/picture/ui/MosaicView;

    invoke-virtual {v0}, Lcom/esfile/screen/recorder/picture/ui/MosaicView;->getImageZoomRect()Landroid/graphics/RectF;

    move-result-object v0

    .line 20
    invoke-virtual {p1}, Landroid/graphics/Bitmap;->getWidth()I

    move-result v1

    .line 21
    invoke-virtual {p1}, Landroid/graphics/Bitmap;->getHeight()I

    move-result v2

    .line 22
    invoke-virtual {v0}, Landroid/graphics/RectF;->width()F

    move-result v3

    int-to-float v4, v1

    div-float/2addr v3, v4

    .line 23
    invoke-virtual {v0}, Landroid/graphics/RectF;->height()F

    move-result v4

    int-to-float v5, v2

    div-float/2addr v4, v5

    .line 24
    iget-object v5, p0, Lcom/esfile/screen/recorder/picture/PictureEditActivity;->i:Lcom/esfile/screen/recorder/picture/crop/HighlightView;

    invoke-virtual {v5}, Lcom/esfile/screen/recorder/picture/crop/HighlightView;->a()Landroid/graphics/Rect;

    move-result-object v5

    .line 25
    iget v6, v5, Landroid/graphics/Rect;->left:I

    int-to-float v6, v6

    iget v7, v0, Landroid/graphics/RectF;->left:F

    sub-float/2addr v6, v7

    iget v8, p0, Lcom/esfile/screen/recorder/picture/PictureEditActivity;->m:I

    int-to-float v9, v8

    sub-float/2addr v6, v9

    div-float/2addr v6, v3

    float-to-int v6, v6

    .line 26
    iget v9, v5, Landroid/graphics/Rect;->top:I

    int-to-float v9, v9

    iget v0, v0, Landroid/graphics/RectF;->top:F

    sub-float/2addr v9, v0

    int-to-float v10, v8

    sub-float/2addr v9, v10

    div-float/2addr v9, v4

    float-to-int v9, v9

    .line 27
    iget v10, v5, Landroid/graphics/Rect;->right:I

    int-to-float v10, v10

    sub-float/2addr v10, v7

    int-to-float v7, v8

    sub-float/2addr v10, v7

    div-float/2addr v10, v3

    float-to-int v3, v10

    .line 28
    iget v5, v5, Landroid/graphics/Rect;->bottom:I

    int-to-float v5, v5

    sub-float/2addr v5, v0

    int-to-float v0, v8

    sub-float/2addr v5, v0

    div-float/2addr v5, v4

    float-to-int v0, v5

    .line 29
    new-instance v4, Landroid/graphics/Rect;

    invoke-direct {v4, v6, v9, v3, v0}, Landroid/graphics/Rect;-><init>(IIII)V

    .line 30
    invoke-direct {p0, p1, v4, v1, v2}, Lcom/esfile/screen/recorder/picture/PictureEditActivity;->a(Landroid/graphics/Bitmap;Landroid/graphics/Rect;II)Landroid/graphics/Bitmap;

    move-result-object p1

    return-object p1
.end method

.method private a(Landroid/graphics/Bitmap;Landroid/graphics/Rect;II)Landroid/graphics/Bitmap;
    .locals 18

    move-object/from16 v0, p2

    move/from16 v1, p3

    move/from16 v2, p4

    const-string v3, "Close inputStream IOException: "

    const-string v4, "peay"

    const/4 v5, 0x0

    .line 31
    :try_start_0
    new-instance v6, Ljava/io/ByteArrayOutputStream;

    invoke-direct {v6}, Ljava/io/ByteArrayOutputStream;-><init>()V

    .line 32
    sget-object v7, Landroid/graphics/Bitmap$CompressFormat;->JPEG:Landroid/graphics/Bitmap$CompressFormat;

    const/16 v8, 0x64

    move-object/from16 v9, p1

    invoke-virtual {v9, v7, v8, v6}, Landroid/graphics/Bitmap;->compress(Landroid/graphics/Bitmap$CompressFormat;ILjava/io/OutputStream;)Z

    .line 33
    new-instance v7, Ljava/io/ByteArrayInputStream;

    invoke-virtual {v6}, Ljava/io/ByteArrayOutputStream;->toByteArray()[B

    move-result-object v6

    invoke-direct {v7, v6}, Ljava/io/ByteArrayInputStream;-><init>([B)V
    :try_end_0
    .catch Ljava/io/IOException; {:try_start_0 .. :try_end_0} :catch_6
    .catch Ljava/lang/OutOfMemoryError; {:try_start_0 .. :try_end_0} :catch_4
    .catchall {:try_start_0 .. :try_end_0} :catchall_1

    const/4 v6, 0x0

    .line 34
    :try_start_1
    invoke-static {v7, v6}, Landroid/graphics/BitmapRegionDecoder;->newInstance(Ljava/io/InputStream;Z)Landroid/graphics/BitmapRegionDecoder;

    move-result-object v6

    .line 35
    invoke-virtual {v6}, Landroid/graphics/BitmapRegionDecoder;->getWidth()I

    move-result v8

    .line 36
    invoke-virtual {v6}, Landroid/graphics/BitmapRegionDecoder;->getHeight()I

    move-result v9
    :try_end_1
    .catch Ljava/io/IOException; {:try_start_1 .. :try_end_1} :catch_3
    .catch Ljava/lang/OutOfMemoryError; {:try_start_1 .. :try_end_1} :catch_2
    .catchall {:try_start_1 .. :try_end_1} :catchall_0

    .line 37
    :try_start_2
    new-instance v10, Landroid/graphics/BitmapFactory$Options;

    invoke-direct {v10}, Landroid/graphics/BitmapFactory$Options;-><init>()V

    invoke-virtual {v6, v0, v10}, Landroid/graphics/BitmapRegionDecoder;->decodeRegion(Landroid/graphics/Rect;Landroid/graphics/BitmapFactory$Options;)Landroid/graphics/Bitmap;

    move-result-object v5

    if-eqz v5, :cond_1

    .line 38
    invoke-virtual/range {p2 .. p2}, Landroid/graphics/Rect;->width()I

    move-result v6

    if-gt v6, v1, :cond_0

    invoke-virtual/range {p2 .. p2}, Landroid/graphics/Rect;->height()I

    move-result v6

    if-le v6, v2, :cond_1

    .line 39
    :cond_0
    new-instance v6, Landroid/graphics/Matrix;

    invoke-direct {v6}, Landroid/graphics/Matrix;-><init>()V

    int-to-float v1, v1

    .line 40
    invoke-virtual/range {p2 .. p2}, Landroid/graphics/Rect;->width()I

    move-result v10

    int-to-float v10, v10

    div-float/2addr v1, v10

    int-to-float v2, v2

    invoke-virtual/range {p2 .. p2}, Landroid/graphics/Rect;->height()I

    move-result v10

    int-to-float v10, v10

    div-float/2addr v2, v10

    invoke-virtual {v6, v1, v2}, Landroid/graphics/Matrix;->postScale(FF)Z

    const/4 v12, 0x0

    const/4 v13, 0x0

    .line 41
    invoke-virtual {v5}, Landroid/graphics/Bitmap;->getWidth()I

    move-result v14

    invoke-virtual {v5}, Landroid/graphics/Bitmap;->getHeight()I

    move-result v15

    const/16 v17, 0x1

    move-object v11, v5

    move-object/from16 v16, v6

    .line 42
    invoke-static/range {v11 .. v17}, Landroid/graphics/Bitmap;->createBitmap(Landroid/graphics/Bitmap;IIIILandroid/graphics/Matrix;Z)Landroid/graphics/Bitmap;

    move-result-object v5
    :try_end_2
    .catch Ljava/lang/IllegalArgumentException; {:try_start_2 .. :try_end_2} :catch_0
    .catch Ljava/io/IOException; {:try_start_2 .. :try_end_2} :catch_3
    .catch Ljava/lang/OutOfMemoryError; {:try_start_2 .. :try_end_2} :catch_2
    .catchall {:try_start_2 .. :try_end_2} :catchall_0

    goto :goto_0

    .line 43
    :catch_0
    :try_start_3
    new-instance v1, Ljava/lang/StringBuilder;

    invoke-direct {v1}, Ljava/lang/StringBuilder;-><init>()V

    const-string v2, "Rectangle "

    invoke-virtual {v1, v2}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    invoke-virtual {v1, v0}, Ljava/lang/StringBuilder;->append(Ljava/lang/Object;)Ljava/lang/StringBuilder;

    const-string v0, " is outside of the image ("

    invoke-virtual {v1, v0}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    invoke-virtual {v1, v8}, Ljava/lang/StringBuilder;->append(I)Ljava/lang/StringBuilder;

    const-string v0, ","

    invoke-virtual {v1, v0}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    invoke-virtual {v1, v9}, Ljava/lang/StringBuilder;->append(I)Ljava/lang/StringBuilder;

    const-string v0, ")"

    invoke-virtual {v1, v0}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    invoke-virtual {v1}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;

    move-result-object v0

    invoke-static {v4, v0}, Lcom/esfile/screen/recorder/utils/n;->b(Ljava/lang/String;Ljava/lang/String;)V
    :try_end_3
    .catch Ljava/io/IOException; {:try_start_3 .. :try_end_3} :catch_3
    .catch Ljava/lang/OutOfMemoryError; {:try_start_3 .. :try_end_3} :catch_2
    .catchall {:try_start_3 .. :try_end_3} :catchall_0

    .line 44
    :cond_1
    :goto_0
    :try_start_4
    invoke-virtual {v7}, Ljava/io/InputStream;->close()V
    :try_end_4
    .catch Ljava/io/IOException; {:try_start_4 .. :try_end_4} :catch_1

    goto/16 :goto_5

    :catch_1
    move-exception v0

    move-object v1, v0

    .line 45
    new-instance v0, Ljava/lang/StringBuilder;

    invoke-direct {v0}, Ljava/lang/StringBuilder;-><init>()V

    invoke-virtual {v0, v3}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    invoke-virtual {v1}, Ljava/io/IOException;->getMessage()Ljava/lang/String;

    move-result-object v2

    invoke-virtual {v0, v2}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    invoke-virtual {v0}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;

    move-result-object v0

    invoke-static {v4, v0, v1}, Lcom/esfile/screen/recorder/utils/n;->a(Ljava/lang/String;Ljava/lang/String;Ljava/lang/Throwable;)V

    goto/16 :goto_5

    :catchall_0
    move-exception v0

    move-object v1, v0

    move-object v5, v7

    goto/16 :goto_6

    :catch_2
    move-exception v0

    move-object v1, v5

    move-object v5, v7

    goto :goto_1

    :catch_3
    move-exception v0

    move-object v1, v5

    move-object v5, v7

    goto :goto_2

    :catchall_1
    move-exception v0

    move-object v1, v0

    goto :goto_6

    :catch_4
    move-exception v0

    move-object v1, v5

    .line 46
    :goto_1
    :try_start_5
    new-instance v2, Ljava/lang/StringBuilder;

    invoke-direct {v2}, Ljava/lang/StringBuilder;-><init>()V

    const-string v6, "OOM cropping image: "

    invoke-virtual {v2, v6}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    invoke-virtual {v0}, Ljava/lang/OutOfMemoryError;->getMessage()Ljava/lang/String;

    move-result-object v6

    invoke-virtual {v2, v6}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    invoke-virtual {v2}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;

    move-result-object v2

    invoke-static {v4, v2, v0}, Lcom/esfile/screen/recorder/utils/n;->a(Ljava/lang/String;Ljava/lang/String;Ljava/lang/Throwable;)V
    :try_end_5
    .catchall {:try_start_5 .. :try_end_5} :catchall_1

    if-eqz v5, :cond_2

    .line 47
    :try_start_6
    invoke-virtual {v5}, Ljava/io/InputStream;->close()V
    :try_end_6
    .catch Ljava/io/IOException; {:try_start_6 .. :try_end_6} :catch_5

    goto :goto_4

    :catch_5
    move-exception v0

    move-object v2, v0

    .line 48
    new-instance v0, Ljava/lang/StringBuilder;

    invoke-direct {v0}, Ljava/lang/StringBuilder;-><init>()V

    goto :goto_3

    :catch_6
    move-exception v0

    move-object v1, v5

    .line 49
    :goto_2
    :try_start_7
    new-instance v2, Ljava/lang/StringBuilder;

    invoke-direct {v2}, Ljava/lang/StringBuilder;-><init>()V

    const-string v6, "Error cropping image: "

    invoke-virtual {v2, v6}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    invoke-virtual {v0}, Ljava/io/IOException;->getMessage()Ljava/lang/String;

    move-result-object v6

    invoke-virtual {v2, v6}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    invoke-virtual {v2}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;

    move-result-object v2

    invoke-static {v4, v2, v0}, Lcom/esfile/screen/recorder/utils/n;->a(Ljava/lang/String;Ljava/lang/String;Ljava/lang/Throwable;)V
    :try_end_7
    .catchall {:try_start_7 .. :try_end_7} :catchall_1

    if-eqz v5, :cond_2

    .line 50
    :try_start_8
    invoke-virtual {v5}, Ljava/io/InputStream;->close()V
    :try_end_8
    .catch Ljava/io/IOException; {:try_start_8 .. :try_end_8} :catch_7

    goto :goto_4

    :catch_7
    move-exception v0

    move-object v2, v0

    .line 51
    new-instance v0, Ljava/lang/StringBuilder;

    invoke-direct {v0}, Ljava/lang/StringBuilder;-><init>()V

    :goto_3
    invoke-virtual {v0, v3}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    invoke-virtual {v2}, Ljava/io/IOException;->getMessage()Ljava/lang/String;

    move-result-object v3

    invoke-virtual {v0, v3}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    invoke-virtual {v0}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;

    move-result-object v0

    invoke-static {v4, v0, v2}, Lcom/esfile/screen/recorder/utils/n;->a(Ljava/lang/String;Ljava/lang/String;Ljava/lang/Throwable;)V

    :cond_2
    :goto_4
    move-object v5, v1

    :goto_5
    return-object v5

    :goto_6
    if-eqz v5, :cond_3

    .line 52
    :try_start_9
    invoke-virtual {v5}, Ljava/io/InputStream;->close()V
    :try_end_9
    .catch Ljava/io/IOException; {:try_start_9 .. :try_end_9} :catch_8

    goto :goto_7

    :catch_8
    move-exception v0

    move-object v2, v0

    .line 53
    new-instance v0, Ljava/lang/StringBuilder;

    invoke-direct {v0}, Ljava/lang/StringBuilder;-><init>()V

    invoke-virtual {v0, v3}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    invoke-virtual {v2}, Ljava/io/IOException;->getMessage()Ljava/lang/String;

    move-result-object v3

    invoke-virtual {v0, v3}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    invoke-virtual {v0}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;

    move-result-object v0

    invoke-static {v4, v0, v2}, Lcom/esfile/screen/recorder/utils/n;->a(Ljava/lang/String;Ljava/lang/String;Ljava/lang/Throwable;)V

    .line 54
    :cond_3
    :goto_7
    throw v1
.end method

.method public static a(Landroid/content/Context;Ljava/lang/String;I)V
    .locals 2

    .line 71
    new-instance v0, Landroid/content/Intent;

    const-class v1, Lcom/esfile/screen/recorder/picture/PictureEditActivity;

    invoke-direct {v0, p0, v1}, Landroid/content/Intent;-><init>(Landroid/content/Context;Ljava/lang/Class;)V

    const-string v1, "path"

    .line 72
    invoke-virtual {v0, v1, p1}, Landroid/content/Intent;->putExtra(Ljava/lang/String;Ljava/lang/String;)Landroid/content/Intent;

    const-string p1, "function"

    .line 73
    invoke-virtual {v0, p1, p2}, Landroid/content/Intent;->putExtra(Ljava/lang/String;I)Landroid/content/Intent;

    const/high16 p1, 0x14000000

    .line 74
    invoke-virtual {v0, p1}, Landroid/content/Intent;->addFlags(I)Landroid/content/Intent;

    .line 75
    invoke-virtual {p0, v0}, Landroid/content/Context;->startActivity(Landroid/content/Intent;)V

    return-void
.end method

.method private a(Ljava/lang/String;Landroid/graphics/Bitmap;)V
    .locals 3

    if-eqz p2, :cond_2

    if-nez p1, :cond_0

    goto :goto_1

    .line 55
    :cond_0
    new-instance v0, Ljava/io/File;

    invoke-direct {v0, p1}, Ljava/io/File;-><init>(Ljava/lang/String;)V

    sget-object v1, Landroid/graphics/Bitmap$CompressFormat;->JPEG:Landroid/graphics/Bitmap$CompressFormat;

    const/16 v2, 0x64

    invoke-static {v0, p2, v1, v2}, Lcom/esfile/screen/recorder/utils/d;->a(Ljava/io/File;Landroid/graphics/Bitmap;Landroid/graphics/Bitmap$CompressFormat;I)Ljava/lang/String;

    move-result-object v0

    .line 56
    invoke-static {v0}, Landroid/text/TextUtils;->isEmpty(Ljava/lang/CharSequence;)Z

    move-result v0

    if-nez v0, :cond_1

    .line 57
    invoke-direct {p0, p1}, Lcom/esfile/screen/recorder/picture/PictureEditActivity;->b(Ljava/lang/String;)V

    goto :goto_0

    .line 58
    :cond_1
    invoke-direct {p0}, Lcom/esfile/screen/recorder/picture/PictureEditActivity;->W()V

    .line 59
    :goto_0
    invoke-direct {p0, p2}, Lcom/esfile/screen/recorder/picture/PictureEditActivity;->b(Landroid/graphics/Bitmap;)V

    goto :goto_2

    .line 60
    :cond_2
    :goto_1
    invoke-direct {p0}, Lcom/esfile/screen/recorder/picture/PictureEditActivity;->W()V

    .line 61
    :goto_2
    new-instance p2, Lcom/esfile/screen/recorder/picture/c;

    invoke-direct {p2, p0}, Lcom/esfile/screen/recorder/picture/c;-><init>(Lcom/esfile/screen/recorder/picture/PictureEditActivity;)V

    invoke-static {p2}, Les/xc;->b(Ljava/lang/Runnable;)V

    .line 62
    iget-boolean p2, p0, Lcom/esfile/screen/recorder/picture/PictureEditActivity;->n:Z

    if-eqz p2, :cond_3

    .line 63
    invoke-static {p0}, Les/v6;->a(Landroid/content/Context;)Les/v6;

    move-result-object p2

    invoke-virtual {p2}, Les/t6;->b()V

    .line 64
    invoke-static {p0}, Les/v6;->a(Landroid/content/Context;)Les/v6;

    move-result-object p2

    iget-object v0, p0, Lcom/esfile/screen/recorder/picture/PictureEditActivity;->o:Ljava/lang/String;

    const-string v1, "attach_classname_"

    invoke-virtual {p2, v0, p1, v1}, Les/v6;->a(Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;)V

    .line 65
    invoke-static {p0}, Les/v6;->a(Landroid/content/Context;)Les/v6;

    move-result-object p2

    iget-object v0, p0, Lcom/esfile/screen/recorder/picture/PictureEditActivity;->o:Ljava/lang/String;

    const-string v1, "attach_pkgname_"

    invoke-virtual {p2, v0, p1, v1}, Les/v6;->a(Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;)V

    .line 66
    invoke-static {p0}, Les/v6;->a(Landroid/content/Context;)Les/v6;

    move-result-object p2

    iget-object v0, p0, Lcom/esfile/screen/recorder/picture/PictureEditActivity;->o:Ljava/lang/String;

    const-string v1, "attach_appname_"

    invoke-virtual {p2, v0, p1, v1}, Les/v6;->a(Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;)V

    .line 67
    invoke-static {p0}, Les/v6;->a(Landroid/content/Context;)Les/v6;

    move-result-object p1

    invoke-virtual {p1}, Les/t6;->c()V

    :cond_3
    return-void
.end method

.method private b(Landroid/content/Intent;Ljava/lang/Runnable;)V
    .locals 1

    const/4 v0, 0x0

    .line 1
    iput-boolean v0, p0, Lcom/esfile/screen/recorder/picture/PictureEditActivity;->n:Z

    .line 2
    new-instance v0, Lcom/esfile/screen/recorder/picture/h;

    invoke-direct {v0, p0, p1, p2}, Lcom/esfile/screen/recorder/picture/h;-><init>(Lcom/esfile/screen/recorder/picture/PictureEditActivity;Landroid/content/Intent;Ljava/lang/Runnable;)V

    invoke-static {v0}, Les/xc;->a(Ljava/lang/Runnable;)V

    return-void
.end method

.method private b(Landroid/graphics/Bitmap;)V
    .locals 1

    if-eqz p1, :cond_0

    .line 25
    invoke-virtual {p1}, Landroid/graphics/Bitmap;->isRecycled()Z

    move-result v0

    if-nez v0, :cond_0

    .line 26
    invoke-virtual {p1}, Landroid/graphics/Bitmap;->recycle()V

    :cond_0
    return-void
.end method

.method private b(Landroid/graphics/Rect;)V
    .locals 6

    if-nez p1, :cond_0

    return-void

    .line 3
    :cond_0
    new-instance v0, Lcom/esfile/screen/recorder/picture/crop/HighlightView;

    iget-object v1, p0, Lcom/esfile/screen/recorder/picture/PictureEditActivity;->h:Lcom/esfile/screen/recorder/picture/crop/CropImageView;

    invoke-direct {v0, v1}, Lcom/esfile/screen/recorder/picture/crop/HighlightView;-><init>(Landroid/view/View;)V

    iput-object v0, p0, Lcom/esfile/screen/recorder/picture/PictureEditActivity;->i:Lcom/esfile/screen/recorder/picture/crop/HighlightView;

    .line 4
    invoke-virtual {p0}, Lcom/esfile/screen/recorder/base/BaseActivity;->getResources()Landroid/content/res/Resources;

    move-result-object v0

    sget v1, Les/v4;->durec_picture_edit_image_margin:I

    invoke-virtual {v0, v1}, Landroid/content/res/Resources;->getDimensionPixelSize(I)I

    move-result v0

    iput v0, p0, Lcom/esfile/screen/recorder/picture/PictureEditActivity;->m:I

    .line 5
    invoke-virtual {p1}, Landroid/graphics/Rect;->width()I

    move-result v0

    .line 6
    invoke-virtual {p1}, Landroid/graphics/Rect;->height()I

    move-result v1

    .line 7
    iget v2, p1, Landroid/graphics/Rect;->left:I

    sub-int v3, v0, v0

    div-int/lit8 v3, v3, 0x2

    add-int/2addr v2, v3

    iget v3, p0, Lcom/esfile/screen/recorder/picture/PictureEditActivity;->m:I

    add-int/2addr v2, v3

    .line 8
    iget p1, p1, Landroid/graphics/Rect;->top:I

    sub-int v4, v1, v1

    div-int/lit8 v4, v4, 0x2

    add-int/2addr p1, v4

    add-int/2addr p1, v3

    .line 9
    new-instance v3, Landroid/graphics/RectF;

    int-to-float v4, v2

    int-to-float v5, p1

    add-int/2addr v2, v0

    int-to-float v0, v2

    add-int/2addr p1, v1

    int-to-float p1, p1

    invoke-direct {v3, v4, v5, v0, p1}, Landroid/graphics/RectF;-><init>(FFFF)V

    .line 10
    new-instance p1, Landroid/graphics/Rect;

    iget v0, p0, Lcom/esfile/screen/recorder/picture/PictureEditActivity;->m:I

    iget-object v1, p0, Lcom/esfile/screen/recorder/picture/PictureEditActivity;->j:Lcom/esfile/screen/recorder/picture/ui/MosaicView;

    .line 11
    invoke-virtual {v1}, Landroid/view/ViewGroup;->getWidth()I

    move-result v1

    iget v2, p0, Lcom/esfile/screen/recorder/picture/PictureEditActivity;->m:I

    add-int/2addr v1, v2

    iget-object v2, p0, Lcom/esfile/screen/recorder/picture/PictureEditActivity;->j:Lcom/esfile/screen/recorder/picture/ui/MosaicView;

    invoke-virtual {v2}, Landroid/view/ViewGroup;->getHeight()I

    move-result v2

    iget v4, p0, Lcom/esfile/screen/recorder/picture/PictureEditActivity;->m:I

    add-int/2addr v2, v4

    invoke-direct {p1, v0, v0, v1, v2}, Landroid/graphics/Rect;-><init>(IIII)V

    .line 12
    iget-object v0, p0, Lcom/esfile/screen/recorder/picture/PictureEditActivity;->i:Lcom/esfile/screen/recorder/picture/crop/HighlightView;

    const/4 v1, 0x0

    invoke-virtual {v0, p1, v3, v1}, Lcom/esfile/screen/recorder/picture/crop/HighlightView;->a(Landroid/graphics/Rect;Landroid/graphics/RectF;Z)V

    .line 13
    iget-object p1, p0, Lcom/esfile/screen/recorder/picture/PictureEditActivity;->h:Lcom/esfile/screen/recorder/picture/crop/CropImageView;

    iget-object v0, p0, Lcom/esfile/screen/recorder/picture/PictureEditActivity;->i:Lcom/esfile/screen/recorder/picture/crop/HighlightView;

    invoke-virtual {p1, v0}, Lcom/esfile/screen/recorder/picture/crop/CropImageView;->a(Lcom/esfile/screen/recorder/picture/crop/HighlightView;)V

    return-void
.end method

.method private b(Ljava/lang/String;)V
    .locals 3

    .line 14
    sget v0, Les/z4;->durec_picture_save_success:I

    invoke-direct {p0, v0}, Lcom/esfile/screen/recorder/picture/PictureEditActivity;->g(I)V

    .line 15
    new-instance v0, Ljava/util/ArrayList;

    invoke-direct {v0}, Ljava/util/ArrayList;-><init>()V

    .line 16
    invoke-virtual {v0, p1}, Ljava/util/ArrayList;->add(Ljava/lang/Object;)Z

    .line 17
    invoke-static {}, Lcom/esfile/screen/recorder/picture/picker/w;->a()Lcom/esfile/screen/recorder/picture/picker/w$a;

    move-result-object v1

    .line 18
    invoke-virtual {v1, v0}, Lcom/esfile/screen/recorder/picture/picker/w$a;->a(Ljava/util/ArrayList;)Lcom/esfile/screen/recorder/picture/picker/w$a;

    const/4 v0, 0x0

    .line 19
    invoke-virtual {v1, v0}, Lcom/esfile/screen/recorder/picture/picker/w$a;->a(I)Lcom/esfile/screen/recorder/picture/picker/w$a;

    const-string v2, "pictureEdit"

    .line 20
    invoke-virtual {v1, v2}, Lcom/esfile/screen/recorder/picture/picker/w$a;->a(Ljava/lang/String;)Lcom/esfile/screen/recorder/picture/picker/w$a;

    .line 21
    invoke-virtual {v1, p0}, Lcom/esfile/screen/recorder/picture/picker/w$a;->a(Landroid/app/Activity;)V

    .line 22
    new-instance v1, Lcom/esfile/screen/recorder/picture/a;

    invoke-direct {v1, p0}, Lcom/esfile/screen/recorder/picture/a;-><init>(Lcom/esfile/screen/recorder/picture/PictureEditActivity;)V

    invoke-static {v1}, Les/xc;->b(Ljava/lang/Runnable;)V

    .line 23
    invoke-direct {p0}, Lcom/esfile/screen/recorder/picture/PictureEditActivity;->T()V

    .line 24
    invoke-static {p0, p1, v0}, Lcom/esfile/screen/recorder/utils/h;->a(Landroid/content/Context;Ljava/lang/String;Z)V

    return-void
.end method

.method private c(Landroid/content/Intent;Ljava/lang/Runnable;)V
    .locals 2

    const-string v0, "function"

    const/4 v1, 0x0

    .line 1
    invoke-virtual {p1, v0, v1}, Landroid/content/Intent;->getIntExtra(Ljava/lang/String;I)I

    move-result v0

    iput v0, p0, Lcom/esfile/screen/recorder/picture/PictureEditActivity;->a:I

    const-string v0, "path"

    .line 2
    invoke-virtual {p1, v0}, Landroid/content/Intent;->getStringExtra(Ljava/lang/String;)Ljava/lang/String;

    move-result-object p1

    iput-object p1, p0, Lcom/esfile/screen/recorder/picture/PictureEditActivity;->o:Ljava/lang/String;

    .line 3
    invoke-interface {p2}, Ljava/lang/Runnable;->run()V

    return-void
.end method

.method private f(Z)V
    .locals 3

    const/4 v0, 0x1

    const/4 v1, 0x0

    if-eqz p1, :cond_0

    .line 1
    iget-object p1, p0, Lcom/esfile/screen/recorder/picture/PictureEditActivity;->k:Landroid/view/View;

    invoke-virtual {p1, v1}, Landroid/view/View;->setVisibility(I)V

    .line 2
    iget-object p1, p0, Lcom/esfile/screen/recorder/picture/PictureEditActivity;->j:Lcom/esfile/screen/recorder/picture/ui/MosaicView;

    invoke-virtual {p1, v1}, Landroid/view/ViewGroup;->setEnabled(Z)V

    .line 3
    iget-object p1, p0, Lcom/esfile/screen/recorder/picture/PictureEditActivity;->h:Lcom/esfile/screen/recorder/picture/crop/CropImageView;

    invoke-virtual {p1, v1}, Lcom/esfile/screen/recorder/picture/crop/CropImageView;->setEnabled(Z)V

    .line 4
    iput-boolean v0, p0, Lcom/esfile/screen/recorder/picture/PictureEditActivity;->l:Z

    goto :goto_0

    .line 5
    :cond_0
    iget-object p1, p0, Lcom/esfile/screen/recorder/picture/PictureEditActivity;->k:Landroid/view/View;

    const/16 v2, 0x8

    invoke-virtual {p1, v2}, Landroid/view/View;->setVisibility(I)V

    .line 6
    iget-object p1, p0, Lcom/esfile/screen/recorder/picture/PictureEditActivity;->j:Lcom/esfile/screen/recorder/picture/ui/MosaicView;

    invoke-virtual {p1, v0}, Landroid/view/ViewGroup;->setEnabled(Z)V

    .line 7
    iget-object p1, p0, Lcom/esfile/screen/recorder/picture/PictureEditActivity;->h:Lcom/esfile/screen/recorder/picture/crop/CropImageView;

    invoke-virtual {p1, v0}, Lcom/esfile/screen/recorder/picture/crop/CropImageView;->setEnabled(Z)V

    .line 8
    iput-boolean v1, p0, Lcom/esfile/screen/recorder/picture/PictureEditActivity;->l:Z

    :goto_0
    return-void
.end method

.method private g(I)V
    .locals 1

    .line 1
    new-instance v0, Lcom/esfile/screen/recorder/picture/b;

    invoke-direct {v0, p0, p1}, Lcom/esfile/screen/recorder/picture/b;-><init>(Lcom/esfile/screen/recorder/picture/PictureEditActivity;I)V

    invoke-static {v0}, Les/xc;->b(Ljava/lang/Runnable;)V

    return-void
.end method

.method private z()V
    .locals 3

    .line 1
    iget-object v0, p0, Lcom/esfile/screen/recorder/picture/PictureEditActivity;->d:Landroid/view/View;

    const/4 v1, 0x0

    invoke-virtual {v0, v1}, Landroid/view/View;->setSelected(Z)V

    .line 2
    iget-object v0, p0, Lcom/esfile/screen/recorder/picture/PictureEditActivity;->e:Landroid/view/View;

    invoke-virtual {v0, v1}, Landroid/view/View;->setSelected(Z)V

    .line 3
    iget-object v0, p0, Lcom/esfile/screen/recorder/picture/PictureEditActivity;->f:Landroid/view/View;

    const/4 v2, 0x1

    invoke-virtual {v0, v2}, Landroid/view/View;->setSelected(Z)V

    .line 4
    iget-object v0, p0, Lcom/esfile/screen/recorder/picture/PictureEditActivity;->j:Lcom/esfile/screen/recorder/picture/ui/MosaicView;

    invoke-virtual {v0, v2}, Landroid/view/ViewGroup;->setEnabled(Z)V

    .line 5
    iget-object v0, p0, Lcom/esfile/screen/recorder/picture/PictureEditActivity;->j:Lcom/esfile/screen/recorder/picture/ui/MosaicView;

    sget-object v2, Lcom/esfile/screen/recorder/picture/ui/MosaicView$Mode;->BRUSH:Lcom/esfile/screen/recorder/picture/ui/MosaicView$Mode;

    invoke-virtual {v0, v2}, Lcom/esfile/screen/recorder/picture/ui/MosaicView;->setMode(Lcom/esfile/screen/recorder/picture/ui/MosaicView$Mode;)V

    .line 6
    iget-object v0, p0, Lcom/esfile/screen/recorder/picture/PictureEditActivity;->h:Lcom/esfile/screen/recorder/picture/crop/CropImageView;

    invoke-virtual {v0, v1}, Lcom/esfile/screen/recorder/picture/crop/CropImageView;->setEnabled(Z)V

    return-void
.end method


# virtual methods
.method public synthetic a(Landroid/content/DialogInterface;I)V
    .locals 0

    .line 68
    invoke-interface {p1}, Landroid/content/DialogInterface;->dismiss()V

    .line 69
    invoke-virtual {p0}, Landroid/app/Activity;->finish()V

    .line 70
    invoke-direct {p0}, Lcom/esfile/screen/recorder/picture/PictureEditActivity;->N()V

    return-void
.end method

.method public synthetic a(Landroid/content/Intent;Ljava/lang/Runnable;)V
    .locals 4

    .line 1
    invoke-virtual {p1}, Landroid/content/Intent;->getData()Landroid/net/Uri;

    move-result-object p1

    if-eqz p1, :cond_0

    .line 2
    invoke-static {p0}, Lcom/esfile/screen/recorder/utils/g;->i(Landroid/content/Context;)I

    move-result v0

    .line 3
    invoke-static {p0}, Lcom/esfile/screen/recorder/utils/g;->f(Landroid/content/Context;)I

    move-result v1

    .line 4
    :try_start_0
    invoke-virtual {p0}, Landroid/app/Activity;->getContentResolver()Landroid/content/ContentResolver;

    move-result-object v2

    const-string v3, "r"

    invoke-virtual {v2, p1, v3}, Landroid/content/ContentResolver;->openFileDescriptor(Landroid/net/Uri;Ljava/lang/String;)Landroid/os/ParcelFileDescriptor;

    move-result-object p1

    if-eqz p1, :cond_0

    const/4 v2, 0x0

    .line 5
    iput v2, p0, Lcom/esfile/screen/recorder/picture/PictureEditActivity;->a:I

    .line 6
    invoke-virtual {p1}, Landroid/os/ParcelFileDescriptor;->getFileDescriptor()Ljava/io/FileDescriptor;

    move-result-object p1

    mul-int v0, v0, v1

    invoke-static {p1, v0}, Lcom/esfile/screen/recorder/utils/d;->a(Ljava/io/FileDescriptor;I)Landroid/graphics/Bitmap;

    move-result-object p1

    iput-object p1, p0, Lcom/esfile/screen/recorder/picture/PictureEditActivity;->p:Landroid/graphics/Bitmap;
    :try_end_0
    .catch Ljava/io/FileNotFoundException; {:try_start_0 .. :try_end_0} :catch_0

    goto :goto_0

    :catch_0
    move-exception p1

    .line 7
    sget-boolean v0, Les/u6;->a:Z

    if-eqz v0, :cond_0

    .line 8
    invoke-virtual {p1}, Ljava/io/FileNotFoundException;->printStackTrace()V

    .line 9
    :cond_0
    :goto_0
    invoke-static {p2}, Les/xc;->b(Ljava/lang/Runnable;)V

    return-void
.end method

.method public synthetic a(Landroid/graphics/Bitmap;Ljava/lang/String;)V
    .locals 1

    .line 14
    iget-object v0, p0, Lcom/esfile/screen/recorder/picture/PictureEditActivity;->i:Lcom/esfile/screen/recorder/picture/crop/HighlightView;

    if-eqz v0, :cond_0

    .line 15
    invoke-direct {p0, p1}, Lcom/esfile/screen/recorder/picture/PictureEditActivity;->a(Landroid/graphics/Bitmap;)Landroid/graphics/Bitmap;

    move-result-object v0

    .line 16
    invoke-direct {p0, p1}, Lcom/esfile/screen/recorder/picture/PictureEditActivity;->b(Landroid/graphics/Bitmap;)V

    .line 17
    invoke-direct {p0, p2, v0}, Lcom/esfile/screen/recorder/picture/PictureEditActivity;->a(Ljava/lang/String;Landroid/graphics/Bitmap;)V

    goto :goto_0

    .line 18
    :cond_0
    invoke-direct {p0, p2, p1}, Lcom/esfile/screen/recorder/picture/PictureEditActivity;->a(Ljava/lang/String;Landroid/graphics/Bitmap;)V

    :goto_0
    return-void
.end method

.method public synthetic a(Landroid/graphics/Rect;)V
    .locals 0

    .line 10
    iget-object p1, p0, Lcom/esfile/screen/recorder/picture/PictureEditActivity;->i:Lcom/esfile/screen/recorder/picture/crop/HighlightView;

    if-eqz p1, :cond_0

    const/4 p1, 0x0

    .line 11
    iput-object p1, p0, Lcom/esfile/screen/recorder/picture/PictureEditActivity;->i:Lcom/esfile/screen/recorder/picture/crop/HighlightView;

    .line 12
    invoke-direct {p0}, Lcom/esfile/screen/recorder/picture/PictureEditActivity;->Z()V

    .line 13
    invoke-direct {p0}, Lcom/esfile/screen/recorder/picture/PictureEditActivity;->Y()V

    :cond_0
    return-void
.end method

.method public synthetic f(I)V
    .locals 1

    .line 9
    invoke-virtual {p0, p1}, Landroid/app/Activity;->getString(I)Ljava/lang/String;

    move-result-object p1

    const/4 v0, 0x0

    invoke-static {p0, p1, v0}, Landroid/widget/Toast;->makeText(Landroid/content/Context;Ljava/lang/CharSequence;I)Landroid/widget/Toast;

    move-result-object p1

    invoke-virtual {p1}, Landroid/widget/Toast;->show()V

    return-void
.end method

.method public onBackPressed()V
    .locals 1

    .line 1
    iget-object v0, p0, Lcom/esfile/screen/recorder/picture/PictureEditActivity;->j:Lcom/esfile/screen/recorder/picture/ui/MosaicView;

    if-eqz v0, :cond_0

    invoke-virtual {v0}, Lcom/esfile/screen/recorder/picture/ui/MosaicView;->b()Z

    move-result v0

    if-nez v0, :cond_1

    :cond_0
    iget-object v0, p0, Lcom/esfile/screen/recorder/picture/PictureEditActivity;->h:Lcom/esfile/screen/recorder/picture/crop/CropImageView;

    if-eqz v0, :cond_2

    .line 2
    invoke-virtual {v0}, Lcom/esfile/screen/recorder/picture/crop/CropImageView;->a()Z

    move-result v0

    if-eqz v0, :cond_2

    .line 3
    :cond_1
    invoke-direct {p0}, Lcom/esfile/screen/recorder/picture/PictureEditActivity;->X()V

    goto :goto_0

    .line 4
    :cond_2
    invoke-super {p0}, Landroidx/activity/ComponentActivity;->onBackPressed()V

    :goto_0
    return-void
.end method

.method public onClick(Landroid/view/View;)V
    .locals 5

    .line 1
    iget-object v0, p0, Lcom/esfile/screen/recorder/picture/PictureEditActivity;->d:Landroid/view/View;

    const/4 v1, 0x0

    const/4 v2, 0x3

    const/4 v3, 0x2

    const/4 v4, 0x1

    if-ne p1, v0, :cond_4

    .line 2
    iget p1, p0, Lcom/esfile/screen/recorder/picture/PictureEditActivity;->a:I

    if-ne p1, v4, :cond_0

    .line 3
    invoke-direct {p0}, Lcom/esfile/screen/recorder/picture/PictureEditActivity;->O()V

    goto :goto_0

    :cond_0
    if-ne p1, v3, :cond_1

    .line 4
    invoke-direct {p0}, Lcom/esfile/screen/recorder/picture/PictureEditActivity;->L()V

    goto :goto_0

    :cond_1
    if-ne p1, v2, :cond_2

    .line 5
    invoke-direct {p0}, Lcom/esfile/screen/recorder/picture/PictureEditActivity;->J()V

    .line 6
    :cond_2
    :goto_0
    iget p1, p0, Lcom/esfile/screen/recorder/picture/PictureEditActivity;->a:I

    if-eq p1, v4, :cond_3

    .line 7
    iput v4, p0, Lcom/esfile/screen/recorder/picture/PictureEditActivity;->a:I

    .line 8
    invoke-direct {p0}, Lcom/esfile/screen/recorder/picture/PictureEditActivity;->P()V

    goto :goto_1

    .line 9
    :cond_3
    iput v1, p0, Lcom/esfile/screen/recorder/picture/PictureEditActivity;->a:I

    .line 10
    :goto_1
    invoke-direct {p0}, Lcom/esfile/screen/recorder/picture/PictureEditActivity;->Y()V

    goto/16 :goto_7

    .line 11
    :cond_4
    iget-object v0, p0, Lcom/esfile/screen/recorder/picture/PictureEditActivity;->e:Landroid/view/View;

    if-ne p1, v0, :cond_9

    .line 12
    iget p1, p0, Lcom/esfile/screen/recorder/picture/PictureEditActivity;->a:I

    if-ne p1, v4, :cond_5

    .line 13
    invoke-direct {p0}, Lcom/esfile/screen/recorder/picture/PictureEditActivity;->O()V

    goto :goto_2

    :cond_5
    if-ne p1, v3, :cond_6

    .line 14
    invoke-direct {p0}, Lcom/esfile/screen/recorder/picture/PictureEditActivity;->L()V

    goto :goto_2

    :cond_6
    if-ne p1, v2, :cond_7

    .line 15
    invoke-direct {p0}, Lcom/esfile/screen/recorder/picture/PictureEditActivity;->J()V

    .line 16
    :cond_7
    :goto_2
    iget p1, p0, Lcom/esfile/screen/recorder/picture/PictureEditActivity;->a:I

    if-eq p1, v3, :cond_8

    .line 17
    iput v3, p0, Lcom/esfile/screen/recorder/picture/PictureEditActivity;->a:I

    .line 18
    invoke-direct {p0}, Lcom/esfile/screen/recorder/picture/PictureEditActivity;->M()V

    goto :goto_3

    .line 19
    :cond_8
    iput v1, p0, Lcom/esfile/screen/recorder/picture/PictureEditActivity;->a:I

    .line 20
    :goto_3
    invoke-direct {p0}, Lcom/esfile/screen/recorder/picture/PictureEditActivity;->Y()V

    goto/16 :goto_7

    .line 21
    :cond_9
    iget-object v0, p0, Lcom/esfile/screen/recorder/picture/PictureEditActivity;->f:Landroid/view/View;

    if-ne p1, v0, :cond_e

    .line 22
    iget p1, p0, Lcom/esfile/screen/recorder/picture/PictureEditActivity;->a:I

    if-ne p1, v4, :cond_a

    .line 23
    invoke-direct {p0}, Lcom/esfile/screen/recorder/picture/PictureEditActivity;->O()V

    goto :goto_4

    :cond_a
    if-ne p1, v3, :cond_b

    .line 24
    invoke-direct {p0}, Lcom/esfile/screen/recorder/picture/PictureEditActivity;->L()V

    goto :goto_4

    :cond_b
    if-ne p1, v2, :cond_c

    .line 25
    invoke-direct {p0}, Lcom/esfile/screen/recorder/picture/PictureEditActivity;->J()V

    .line 26
    :cond_c
    :goto_4
    iget p1, p0, Lcom/esfile/screen/recorder/picture/PictureEditActivity;->a:I

    if-eq p1, v2, :cond_d

    .line 27
    iput v2, p0, Lcom/esfile/screen/recorder/picture/PictureEditActivity;->a:I

    .line 28
    invoke-direct {p0}, Lcom/esfile/screen/recorder/picture/PictureEditActivity;->K()V

    goto :goto_5

    .line 29
    :cond_d
    iput v1, p0, Lcom/esfile/screen/recorder/picture/PictureEditActivity;->a:I

    .line 30
    :goto_5
    invoke-direct {p0}, Lcom/esfile/screen/recorder/picture/PictureEditActivity;->Y()V

    goto :goto_7

    .line 31
    :cond_e
    iget-object v0, p0, Lcom/esfile/screen/recorder/picture/PictureEditActivity;->g:Landroid/view/View;

    if-ne p1, v0, :cond_12

    .line 32
    iget p1, p0, Lcom/esfile/screen/recorder/picture/PictureEditActivity;->a:I

    if-nez p1, :cond_10

    .line 33
    iget-object p1, p0, Lcom/esfile/screen/recorder/picture/PictureEditActivity;->j:Lcom/esfile/screen/recorder/picture/ui/MosaicView;

    invoke-virtual {p1}, Lcom/esfile/screen/recorder/picture/ui/MosaicView;->b()Z

    move-result p1

    if-nez p1, :cond_f

    iget-object p1, p0, Lcom/esfile/screen/recorder/picture/PictureEditActivity;->j:Lcom/esfile/screen/recorder/picture/ui/MosaicView;

    invoke-virtual {p1}, Lcom/esfile/screen/recorder/picture/ui/MosaicView;->c()Z

    move-result p1

    if-nez p1, :cond_f

    iget-object p1, p0, Lcom/esfile/screen/recorder/picture/PictureEditActivity;->h:Lcom/esfile/screen/recorder/picture/crop/CropImageView;

    .line 34
    invoke-virtual {p1}, Landroid/widget/ImageView;->getVisibility()I

    move-result p1

    if-eqz p1, :cond_f

    iget-object p1, p0, Lcom/esfile/screen/recorder/picture/PictureEditActivity;->h:Lcom/esfile/screen/recorder/picture/crop/CropImageView;

    invoke-virtual {p1}, Lcom/esfile/screen/recorder/picture/crop/CropImageView;->a()Z

    move-result p1

    if-eqz p1, :cond_11

    .line 35
    :cond_f
    invoke-direct {p0}, Lcom/esfile/screen/recorder/picture/PictureEditActivity;->V()V

    goto :goto_6

    .line 36
    :cond_10
    invoke-direct {p0}, Lcom/esfile/screen/recorder/picture/PictureEditActivity;->V()V

    .line 37
    :cond_11
    :goto_6
    invoke-direct {p0}, Lcom/esfile/screen/recorder/picture/PictureEditActivity;->Q()V

    goto :goto_7

    .line 38
    :cond_12
    iget-object v0, p0, Lcom/esfile/screen/recorder/picture/PictureEditActivity;->c:Landroid/widget/TextView;

    if-ne p1, v0, :cond_13

    .line 39
    invoke-direct {p0}, Lcom/esfile/screen/recorder/picture/PictureEditActivity;->H()V

    .line 40
    invoke-direct {p0}, Lcom/esfile/screen/recorder/picture/PictureEditActivity;->R()V

    goto :goto_7

    .line 41
    :cond_13
    iget-object v0, p0, Lcom/esfile/screen/recorder/picture/PictureEditActivity;->b:Landroid/widget/ImageView;

    if-ne p1, v0, :cond_14

    .line 42
    invoke-virtual {p0}, Lcom/esfile/screen/recorder/picture/PictureEditActivity;->onBackPressed()V

    :cond_14
    :goto_7
    return-void
.end method

.method protected onCreate(Landroid/os/Bundle;)V
    .locals 0

    .line 1
    invoke-super {p0, p1}, Lcom/esfile/screen/recorder/base/BaseActivity;->onCreate(Landroid/os/Bundle;)V

    .line 2
    sget p1, Les/y4;->durec_picture_edit:I

    invoke-virtual {p0, p1}, Landroidx/appcompat/app/AppCompatActivity;->setContentView(I)V

    .line 3
    invoke-direct {p0}, Lcom/esfile/screen/recorder/picture/PictureEditActivity;->I()V

    return-void
.end method

.method public u()Ljava/lang/String;
    .locals 1

    const-string v0, "\u56fe\u7247\u7f16\u8f91\u9875\u9762"

    return-object v0
.end method

.method public synthetic v()V
    .locals 2

    .line 1
    invoke-direct {p0}, Lcom/esfile/screen/recorder/picture/PictureEditActivity;->E()Z

    move-result v0

    if-nez v0, :cond_0

    return-void

    .line 2
    :cond_0
    iget-boolean v0, p0, Lcom/esfile/screen/recorder/picture/PictureEditActivity;->n:Z

    if-eqz v0, :cond_1

    .line 3
    iget-object v0, p0, Lcom/esfile/screen/recorder/picture/PictureEditActivity;->j:Lcom/esfile/screen/recorder/picture/ui/MosaicView;

    iget-object v1, p0, Lcom/esfile/screen/recorder/picture/PictureEditActivity;->o:Ljava/lang/String;

    invoke-virtual {v0, v1}, Lcom/esfile/screen/recorder/picture/ui/MosaicView;->setSrcPath(Ljava/lang/String;)V

    goto :goto_0

    .line 4
    :cond_1
    iget-object v0, p0, Lcom/esfile/screen/recorder/picture/PictureEditActivity;->j:Lcom/esfile/screen/recorder/picture/ui/MosaicView;

    iget-object v1, p0, Lcom/esfile/screen/recorder/picture/PictureEditActivity;->p:Landroid/graphics/Bitmap;

    invoke-virtual {v0, v1}, Lcom/esfile/screen/recorder/picture/ui/MosaicView;->setSrcBitmap(Landroid/graphics/Bitmap;)V

    .line 5
    :goto_0
    new-instance v0, Lcom/esfile/screen/recorder/picture/e;

    invoke-direct {v0, p0}, Lcom/esfile/screen/recorder/picture/e;-><init>(Lcom/esfile/screen/recorder/picture/PictureEditActivity;)V

    invoke-virtual {p0, v0}, Landroid/app/Activity;->runOnUiThread(Ljava/lang/Runnable;)V

    return-void
.end method

.method public synthetic w()V
    .locals 1

    .line 1
    invoke-direct {p0}, Lcom/esfile/screen/recorder/picture/PictureEditActivity;->E()Z

    move-result v0

    if-nez v0, :cond_0

    return-void

    .line 2
    :cond_0
    invoke-direct {p0}, Lcom/esfile/screen/recorder/picture/PictureEditActivity;->D()V

    return-void
.end method

.method public synthetic x()V
    .locals 2

    .line 1
    iget-object v0, p0, Lcom/esfile/screen/recorder/picture/PictureEditActivity;->k:Landroid/view/View;

    const/16 v1, 0x8

    invoke-virtual {v0, v1}, Landroid/view/View;->setVisibility(I)V

    .line 2
    iget-object v0, p0, Lcom/esfile/screen/recorder/picture/PictureEditActivity;->d:Landroid/view/View;

    const/4 v1, 0x1

    invoke-virtual {v0, v1}, Landroid/view/View;->setEnabled(Z)V

    .line 3
    iget-object v0, p0, Lcom/esfile/screen/recorder/picture/PictureEditActivity;->e:Landroid/view/View;

    invoke-virtual {v0, v1}, Landroid/view/View;->setEnabled(Z)V

    .line 4
    iget-object v0, p0, Lcom/esfile/screen/recorder/picture/PictureEditActivity;->f:Landroid/view/View;

    invoke-virtual {v0, v1}, Landroid/view/View;->setEnabled(Z)V

    .line 5
    iget-object v0, p0, Lcom/esfile/screen/recorder/picture/PictureEditActivity;->g:Landroid/view/View;

    invoke-virtual {v0, v1}, Landroid/view/View;->setEnabled(Z)V

    .line 6
    iget-object v0, p0, Lcom/esfile/screen/recorder/picture/PictureEditActivity;->c:Landroid/widget/TextView;

    invoke-virtual {v0, v1}, Landroid/widget/TextView;->setEnabled(Z)V

    .line 7
    invoke-direct {p0}, Lcom/esfile/screen/recorder/picture/PictureEditActivity;->Y()V

    return-void
.end method

.method public synthetic y()V
    .locals 1

    const/4 v0, 0x0

    .line 1
    invoke-direct {p0, v0}, Lcom/esfile/screen/recorder/picture/PictureEditActivity;->f(Z)V

    return-void
.end method
